package antempire.control.game.operation.wateroperation;

import org.anddev.andengine.engine.handler.physics.PhysicsHandler;
import org.anddev.andengine.opengl.texture.region.TiledTextureRegion;
import org.anddev.andengine.ui.activity.BaseGameActivity;

import antempire.control.game.GameConstants;

public class WaterOperation implements GameConstants {

	private WaterSprite captureWater;
	private PhysicsHandler waterphysic;

	public WaterSprite lauchWater(TiledTextureRegion captureWaterTextureRegionMap, float x,
			float y, final BaseGameActivity activity) {
		this.captureWater = new WaterSprite(x, y, captureWaterTextureRegionMap.clone(), activity);
		
		activity.getEngine().getScene().getChild(LAYER_CAPTURE_WATER).attachChild(captureWater);
		return captureWater;
	}

}
